package com.zqh.apiorderud.controller;

import com.zqh.myfmmall.clients.OrderUDClient;
import com.zqh.myfmmall.result.Result;
import com.zqh.myfmmall.rowbeans.entity.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-05 23:00
 */
@RestController
@RequestMapping("order/ud")

public class ApiOrderUDController{
    /**
     * 服务对象
     */
    @Autowired
    private OrderUDClient orderUDClient;


    /*@PutMapping("update")
    Result update (@RequestBody Orders order){
        return orderUDClient.update(order);
    }*/

    @DeleteMapping("delete/{id}")
    Result delete(@PathVariable String id){
        return orderUDClient.delete(id);
    }

}
